package com.example.xd.dialtest.js;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;
import com.example.xd.dialtest.R;

import java.util.Stack;

public class VolleyActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_volley);
        RequestQueue requestQueue = Volley.newRequestQueue(this);
        Stack<String> strings = new Stack<>();
        strings.push("1");
        strings.push("2");
        Log.i("xd---", strings.peek());
        Log.i("xd---", strings.peek());
        strings.push("3");
        Log.i("xd---", strings.peek());
        Log.i("xd---", strings.pop());
        Log.i("xd---", strings.peek());


    }
}
